.class public Lcom/esfile/screen/recorder/videos/edit/l;
.super Ljava/lang/Object;
.source "VideoEditor.java"


# instance fields
.field private a:Ljava/lang/String;

.field private b:Lcom/esfile/screen/recorder/media/a;


# direct methods
.method public constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 0
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;
        }
    .end annotation

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/l;->a:Ljava/lang/String;

    .line 3
    new-instance p2, Lcom/esfile/screen/recorder/media/a;

    invoke-direct {p2}, Lcom/esfile/screen/recorder/media/a;-><init>()V

    iput-object p2, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    .line 4
    invoke-virtual {p2, p1}, Lcom/esfile/screen/recorder/media/a;->b(Ljava/lang/String;)Z

    move-result p1

    if-eqz p1, :cond_0

    return-void

    :cond_0
    const/4 p1, 0x0

    .line 5
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    .line 6
    new-instance p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;

    const-string p2, "Unsupported video file"

    invoke-direct {p1, p2}, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private a(Les/cd$c;Ljava/lang/StringBuilder;)V
    .locals 2

    .line 67
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$c;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 68
    new-instance v0, Ljava/util/ArrayList;

    const/4 v1, 0x1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 69
    new-instance v1, Les/s7;

    invoke-direct {v1}, Les/s7;-><init>()V

    .line 70
    iget-object p1, p1, Les/cd$c;->d:Landroid/graphics/Bitmap;

    iput-object p1, v1, Les/s7;->b:Ljava/lang/Object;

    .line 71
    invoke-interface {v0, v1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 72
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/media/a;->d(Ljava/util/List;)V

    const-string p1, "picture"

    .line 73
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_"

    .line 74
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 75
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/media/a;->d(Ljava/util/List;)V

    :goto_0
    return-void
.end method

.method private a(Les/cd$d;Ljava/lang/StringBuilder;)V
    .locals 2

    .line 91
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$d;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    .line 92
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    iget-object p1, p1, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-virtual {v0, p1, v1}, Lcom/esfile/screen/recorder/media/a;->a(Landroid/graphics/RectF;Z)V

    const-string p1, "crop"

    .line 93
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_"

    .line 94
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 95
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 p2, 0x0

    invoke-virtual {p1, p2, v1}, Lcom/esfile/screen/recorder/media/a;->a(Landroid/graphics/RectF;Z)V

    :goto_0
    return-void
.end method

.method private a(Les/cd$n;Ljava/lang/StringBuilder;)V
    .locals 1

    .line 97
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$n;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 98
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    iget p1, p1, Les/cd$n;->a:I

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/a;->b(I)V

    const-string p1, "rotate"

    .line 99
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_"

    .line 100
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 101
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/media/a;->b(I)V

    :goto_0
    return-void
.end method

.method private a(Les/cd$o;Ljava/lang/StringBuilder;)V
    .locals 10

    .line 104
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$o;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 105
    new-instance v0, Ljava/util/ArrayList;

    iget-object v1, p1, Les/cd$o;->a:Ljava/util/List;

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V

    .line 106
    iget-object p1, p1, Les/cd$o;->a:Ljava/util/List;

    invoke-interface {p1}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object p1

    :cond_0
    :goto_0
    invoke-interface {p1}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_1

    invoke-interface {p1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Les/cd$p;

    .line 107
    iget v2, v1, Les/cd$p;->b:F

    const/high16 v3, 0x3f800000    # 1.0f

    cmpl-float v2, v2, v3

    if-eqz v2, :cond_0

    .line 108
    new-instance v2, Les/da;

    new-instance v3, Landroid/util/Pair;

    iget-wide v4, v1, Les/cd$p;->c:J

    const-wide/16 v6, 0x3e8

    mul-long v4, v4, v6

    .line 109
    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    iget-wide v8, v1, Les/cd$p;->d:J

    mul-long v8, v8, v6

    invoke-static {v8, v9}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-direct {v3, v4, v5}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    iget v1, v1, Les/cd$p;->b:F

    invoke-direct {v2, v3, v1}, Les/da;-><init>(Landroid/util/Pair;F)V

    .line 110
    invoke-interface {v0, v2}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 111
    :cond_1
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/media/a;->f(Ljava/util/List;)V

    .line 112
    invoke-interface {v0}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_3

    const-string p1, "speed"

    .line 113
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_"

    .line 114
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1

    .line 115
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/media/a;->f(Ljava/util/List;)V

    :cond_3
    :goto_1
    return-void
.end method

.method private a(Les/cd;)V
    .locals 4

    .line 76
    iget-object v0, p1, Les/cd;->g:Les/cd$c;

    .line 77
    iget-object v1, p1, Les/cd;->f:Les/cd$e;

    .line 78
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 v3, -0x1

    invoke-virtual {v2, v3}, Lcom/esfile/screen/recorder/media/a;->a(I)V

    .line 79
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v2

    invoke-static {v2}, Lcom/esfile/screen/recorder/utils/g;->d(Landroid/content/Context;)I

    move-result v2

    .line 80
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v3

    invoke-static {v3}, Lcom/esfile/screen/recorder/utils/g;->e(Landroid/content/Context;)I

    move-result v3

    .line 81
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$c;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 82
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I

    move-result v0

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/media/a;->a(I)V

    goto :goto_1

    .line 83
    :cond_0
    invoke-direct {p0, v1}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$e;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 84
    iget-object v0, v1, Les/cd$e;->a:Les/cd$g;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v0

    if-nez v0, :cond_1

    iget-object v0, v1, Les/cd$e;->b:Les/cd$g;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 85
    :cond_1
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->c(Les/cd;)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object p1

    .line 86
    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v0

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p1

    if-le v0, p1, :cond_2

    invoke-static {v2, v3}, Ljava/lang/Math;->min(II)I

    move-result p1

    goto :goto_0

    .line 87
    :cond_2
    invoke-static {v2, v3}, Ljava/lang/Math;->max(II)I

    move-result p1

    .line 88
    :goto_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/a;->a(I)V

    .line 89
    :cond_3
    :goto_1
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v0, "max height = "

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/a;->d()I

    move-result v0

    invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    const-string v0, "ve"

    invoke-static {v0, p1}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    return-void
.end method

.method private a(Les/cd;JLjava/lang/StringBuilder;)V
    .locals 16

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-wide/from16 v2, p2

    move-object/from16 v4, p4

    .line 38
    iget-object v5, v1, Les/cd;->d:Les/cd$i;

    .line 39
    invoke-direct {v0, v5}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$i;)Z

    move-result v6

    const/4 v7, 0x0

    if-eqz v6, :cond_2

    .line 40
    iget-object v6, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    iget v8, v5, Les/cd$i;->b:F

    invoke-virtual {v6, v8}, Lcom/esfile/screen/recorder/media/a;->a(F)V

    .line 41
    invoke-direct/range {p0 .. p1}, Lcom/esfile/screen/recorder/videos/edit/l;->d(Les/cd;)J

    move-result-wide v8

    .line 42
    iget-object v6, v5, Les/cd$i;->a:Ljava/util/List;

    if-eqz v6, :cond_1

    invoke-interface {v6}, Ljava/util/List;->isEmpty()Z

    move-result v6

    if-nez v6, :cond_1

    .line 43
    new-instance v6, Ljava/util/ArrayList;

    iget-object v7, v5, Les/cd$i;->a:Ljava/util/List;

    invoke-interface {v7}, Ljava/util/List;->size()I

    move-result v7

    invoke-direct {v6, v7}, Ljava/util/ArrayList;-><init>(I)V

    .line 44
    iget-object v5, v5, Les/cd$i;->a:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v7

    if-eqz v7, :cond_0

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v7

    check-cast v7, Les/cd$j;

    .line 45
    new-instance v10, Les/ba;

    invoke-direct {v10}, Les/ba;-><init>()V

    .line 46
    iget-boolean v11, v7, Les/cd$j;->i:Z

    iput-boolean v11, v10, Les/ba;->f:Z

    .line 47
    iget-object v11, v7, Les/cd$j;->b:Ljava/lang/String;

    iput-object v11, v10, Les/ba;->b:Ljava/lang/String;

    .line 48
    iget-object v11, v7, Les/cd$j;->c:Ljava/lang/String;

    iput-object v11, v10, Les/ba;->a:Ljava/lang/String;

    .line 49
    iget v11, v7, Les/cd$j;->h:F

    iput v11, v10, Les/ba;->e:F

    .line 50
    new-instance v11, Landroid/util/Pair;

    iget-wide v12, v7, Les/cd$j;->d:J

    const-wide/16 v14, 0x3e8

    mul-long v12, v12, v14

    .line 51
    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v12

    move-object v13, v5

    iget-wide v4, v7, Les/cd$j;->e:J

    mul-long v4, v4, v14

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    invoke-direct {v11, v12, v4}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object v11, v10, Les/ba;->c:Landroid/util/Pair;

    .line 52
    new-instance v4, Landroid/util/Pair;

    iget-wide v11, v7, Les/cd$j;->f:J

    .line 53
    invoke-static {v1, v11, v12, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;JJ)J

    move-result-wide v11

    add-long/2addr v11, v8

    mul-long v11, v11, v14

    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    iget-wide v11, v7, Les/cd$j;->g:J

    .line 54
    invoke-static {v1, v11, v12, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;JJ)J

    move-result-wide v11

    add-long/2addr v11, v8

    mul-long v11, v11, v14

    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v7

    invoke-direct {v4, v5, v7}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object v4, v10, Les/ba;->d:Landroid/util/Pair;

    .line 55
    invoke-interface {v6, v10}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    move-object/from16 v4, p4

    move-object v5, v13

    goto :goto_0

    .line 56
    :cond_0
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v1, v6}, Lcom/esfile/screen/recorder/media/a;->b(Ljava/util/List;)V

    const-string v1, "music"

    move-object/from16 v2, p4

    .line 57
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "_"

    .line 58
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_1

    .line 59
    :cond_1
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v1, v7}, Lcom/esfile/screen/recorder/media/a;->b(Ljava/util/List;)V

    goto :goto_1

    .line 60
    :cond_2
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/high16 v2, 0x3f800000    # 1.0f

    invoke-virtual {v1, v2}, Lcom/esfile/screen/recorder/media/a;->a(F)V

    .line 61
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v1, v7}, Lcom/esfile/screen/recorder/media/a;->b(Ljava/util/List;)V

    :goto_1
    return-void
.end method

.method private a(Les/cd;Ljava/lang/StringBuilder;)V
    .locals 7

    .line 119
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 v1, -0x1

    invoke-virtual {v0, v1, v1}, Lcom/esfile/screen/recorder/media/a;->a(II)V

    .line 120
    iget-object v0, p1, Les/cd;->f:Les/cd$e;

    .line 121
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$e;)Z

    move-result v1

    if-eqz v1, :cond_2

    const/4 v1, 0x0

    .line 122
    iget-object v2, v0, Les/cd$e;->a:Les/cd$g;

    invoke-direct {p0, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v2

    const/4 v3, 0x1

    if-eqz v2, :cond_0

    .line 123
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    iget-object v2, v0, Les/cd$e;->a:Les/cd$g;

    iget-object v4, v2, Les/cd$g;->j:Landroid/graphics/Bitmap;

    iget-wide v5, v2, Les/cd$g;->k:J

    invoke-virtual {v1, v4, v5, v6}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/Object;J)V

    const/4 v1, 0x1

    .line 124
    :cond_0
    iget-object v2, v0, Les/cd$e;->b:Les/cd$g;

    invoke-direct {p0, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v2

    if-eqz v2, :cond_1

    .line 125
    iget-object v1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    iget-object v0, v0, Les/cd$e;->b:Les/cd$g;

    iget-object v2, v0, Les/cd$g;->j:Landroid/graphics/Bitmap;

    iget-wide v4, v0, Les/cd$g;->k:J

    invoke-virtual {v1, v2, v4, v5}, Lcom/esfile/screen/recorder/media/a;->b(Ljava/lang/Object;J)V

    goto :goto_0

    :cond_1
    move v3, v1

    :goto_0
    if-eqz v3, :cond_2

    .line 126
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->c(Les/cd;)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object p1

    .line 127
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result p1

    invoke-virtual {v0, v1, p1}, Lcom/esfile/screen/recorder/media/a;->a(II)V

    const-string p1, "introoutro"

    .line 128
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_"

    .line 129
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2
    return-void
.end method

.method private a(Z)V
    .locals 5
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;
        }
    .end annotation

    .line 1
    invoke-static {}, Les/qc$f;->a()Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 2
    new-instance v1, Ljava/text/SimpleDateFormat;

    const-string v2, "yyyyMMdd_HHmmss"

    invoke-direct {v1, v2}, Ljava/text/SimpleDateFormat;-><init>(Ljava/lang/String;)V

    new-instance v2, Ljava/util/Date;

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v3

    invoke-direct {v2, v3, v4}, Ljava/util/Date;-><init>(J)V

    invoke-virtual {v1, v2}, Ljava/text/SimpleDateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v1

    const-string v2, ".mp4"

    if-eqz p1, :cond_0

    .line 3
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "Ad_"

    invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    goto :goto_0

    .line 4
    :cond_0
    new-instance p1, Ljava/lang/StringBuilder;

    invoke-direct {p1}, Ljava/lang/StringBuilder;-><init>()V

    sget-object v3, Ljava/io/File;->separator:Ljava/lang/String;

    invoke-virtual {p1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "_es_edited"

    invoke-virtual {p1, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 5
    :goto_0
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    .line 6
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v0, p1}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/lang/String;)V

    return-void

    :cond_1
    const/4 p1, 0x0

    .line 7
    iput-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    .line 8
    new-instance p1, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;

    const-string v0, "Unsupported video file"

    invoke-direct {p1, v0}, Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException;-><init>(Ljava/lang/String;)V

    throw p1
.end method

.method private a(Les/cd$c;)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 66
    iget-object p1, p1, Les/cd$c;->d:Landroid/graphics/Bitmap;

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$d;)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 90
    iget-object p1, p1, Les/cd$d;->a:Landroid/graphics/RectF;

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$e;)Z
    .locals 1

    if-eqz p1, :cond_1

    .line 116
    iget-object v0, p1, Les/cd$e;->a:Les/cd$g;

    if-nez v0, :cond_0

    iget-object p1, p1, Les/cd$e;->b:Les/cd$g;

    if-eqz p1, :cond_1

    :cond_0
    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$g;)Z
    .locals 4

    if-eqz p1, :cond_0

    .line 117
    iget-object v0, p1, Les/cd$g;->j:Landroid/graphics/Bitmap;

    if-eqz v0, :cond_0

    .line 118
    invoke-virtual {v0}, Landroid/graphics/Bitmap;->isRecycled()Z

    move-result v0

    if-nez v0, :cond_0

    iget-wide v0, p1, Les/cd$g;->k:J

    const-wide/16 v2, 0x0

    cmp-long p1, v0, v2

    if-lez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$i;)Z
    .locals 2

    if-eqz p1, :cond_1

    .line 36
    iget v0, p1, Les/cd$i;->b:F

    const/high16 v1, 0x3f800000    # 1.0f

    cmpl-float v0, v0, v1

    if-nez v0, :cond_0

    iget-object p1, p1, Les/cd$i;->a:Ljava/util/List;

    if-eqz p1, :cond_1

    .line 37
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_1

    :cond_0
    const/4 p1, 0x1

    goto :goto_0

    :cond_1
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$k;)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 64
    iget-object p1, p1, Les/cd$k;->a:Ljava/util/List;

    if-eqz p1, :cond_0

    .line 65
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$n;)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 96
    iget p1, p1, Les/cd$n;->a:I

    if-eqz p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$o;)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 102
    iget-object p1, p1, Les/cd$o;->a:Ljava/util/List;

    if-eqz p1, :cond_0

    .line 103
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private a(Les/cd$q;)Z
    .locals 0

    if-eqz p1, :cond_0

    .line 62
    iget-object p1, p1, Les/cd$q;->a:Ljava/util/List;

    if-eqz p1, :cond_0

    .line 63
    invoke-interface {p1}, Ljava/util/List;->isEmpty()Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private b(Les/cd;JLjava/lang/StringBuilder;)V
    .locals 19

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-wide/from16 v2, p2

    move-object/from16 v4, p4

    .line 18
    iget-object v5, v1, Les/cd;->l:Les/cd$k;

    .line 19
    invoke-direct {v0, v5}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$k;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 20
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 21
    invoke-direct/range {p0 .. p1}, Lcom/esfile/screen/recorder/videos/edit/l;->d(Les/cd;)J

    move-result-wide v7

    .line 22
    iget-object v5, v5, Les/cd$k;->a:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_1

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Les/cd$l;

    .line 23
    iget-wide v10, v9, Les/cd$l;->h:J

    .line 24
    invoke-static {v1, v10, v11, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;JJ)J

    move-result-wide v10

    add-long/2addr v10, v7

    .line 25
    iget-wide v12, v9, Les/cd$l;->i:J

    .line 26
    invoke-static {v1, v12, v13, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;JJ)J

    move-result-wide v12

    add-long/2addr v12, v7

    sub-long v14, v12, v10

    const-wide/16 v16, 0x3e8

    cmp-long v18, v14, v16

    if-gez v18, :cond_0

    goto :goto_0

    .line 27
    :cond_0
    new-instance v14, Les/g8;

    invoke-direct {v14}, Les/g8;-><init>()V

    const/4 v15, 0x1

    .line 28
    iput-boolean v15, v14, Les/g8;->a:Z

    .line 29
    iget v15, v9, Les/cd$l;->b:F

    iput v15, v14, Les/g8;->e:F

    .line 30
    iget v15, v9, Les/cd$l;->c:F

    iput v15, v14, Les/g8;->f:F

    .line 31
    iget v15, v9, Les/cd$l;->e:F

    iput v15, v14, Les/g8;->b:F

    .line 32
    iget v15, v9, Les/cd$l;->f:F

    iput v15, v14, Les/g8;->d:F

    .line 33
    iget v15, v9, Les/cd$l;->d:F

    neg-float v15, v15

    iput v15, v14, Les/g8;->h:F

    .line 34
    new-instance v15, Landroid/util/Pair;

    mul-long v10, v10, v16

    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v10

    mul-long v12, v12, v16

    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v11

    invoke-direct {v15, v10, v11}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object v15, v14, Les/g8;->i:Landroid/util/Pair;

    .line 35
    iget-object v9, v9, Les/cd$l;->g:Ljava/lang/String;

    iput-object v9, v14, Les/g8;->g:Ljava/lang/Object;

    .line 36
    invoke-interface {v6, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 37
    :cond_1
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v1, v6}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/util/List;)V

    .line 38
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v1

    invoke-static {v1}, Lcom/esfile/screen/recorder/videos/edit/k;->a(I)V

    const-string v1, "image"

    .line 39
    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "_"

    .line 40
    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_2
    return-void
.end method

.method private b(Les/cd;Ljava/lang/StringBuilder;)V
    .locals 9

    .line 1
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/a;->e()I

    move-result v0

    int-to-long v0, v0

    .line 2
    iget-object v2, p1, Les/cd;->b:Les/cd$s;

    .line 3
    iget-object p1, p1, Les/cd;->c:Les/cd$m;

    const-string v3, "_"

    const-wide/16 v4, 0x0

    if-eqz v2, :cond_1

    .line 4
    iget-wide v6, v2, Les/cd$s;->a:J

    cmp-long v8, v6, v4

    if-nez v8, :cond_0

    iget-wide v6, v2, Les/cd$s;->b:J

    cmp-long v8, v6, v0

    if-eqz v8, :cond_1

    .line 5
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    iget-wide v0, v2, Les/cd$s;->a:J

    iget-wide v4, v2, Les/cd$s;->b:J

    invoke-virtual {p1, v0, v1, v4, v5}, Lcom/esfile/screen/recorder/media/a;->a(JJ)J

    const-string p1, "trim"

    .line 6
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 7
    invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    :cond_1
    if-eqz p1, :cond_5

    .line 8
    iget-wide v6, p1, Les/cd$m;->a:J

    cmp-long v2, v6, v4

    if-nez v2, :cond_2

    iget-wide v6, p1, Les/cd$m;->b:J

    cmp-long v2, v6, v0

    if-eqz v2, :cond_5

    .line 9
    :cond_2
    new-instance v2, Ljava/util/ArrayList;

    invoke-direct {v2}, Ljava/util/ArrayList;-><init>()V

    .line 10
    iget-wide v6, p1, Les/cd$m;->a:J

    cmp-long v8, v6, v4

    if-eqz v8, :cond_3

    .line 11
    new-instance v6, Landroid/util/Pair;

    invoke-static {v4, v5}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v4

    iget-wide v7, p1, Les/cd$m;->a:J

    invoke-static {v7, v8}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    invoke-direct {v6, v4, v5}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {v2, v6}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 12
    :cond_3
    iget-wide v4, p1, Les/cd$m;->b:J

    cmp-long v6, v4, v0

    if-eqz v6, :cond_4

    .line 13
    new-instance v4, Landroid/util/Pair;

    iget-wide v5, p1, Les/cd$m;->b:J

    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object p1

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-direct {v4, p1, v0}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    invoke-interface {v2, v4}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 14
    :cond_4
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1, v2}, Lcom/esfile/screen/recorder/media/a;->c(Ljava/util/List;)J

    const-string p1, "removemid"

    .line 15
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 16
    invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_0

    .line 17
    :cond_5
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 p2, 0x0

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/media/a;->b(Landroid/util/Pair;)J

    :goto_0
    return-void
.end method

.method private b(Les/cd;)Z
    .locals 3

    .line 41
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->e(Les/cd;)Z

    move-result v0

    const/4 v1, 0x1

    if-eqz v0, :cond_0

    return v1

    .line 42
    :cond_0
    iget-object v0, p1, Les/cd;->j:Les/cd$u;

    const/4 v2, 0x0

    if-eqz v0, :cond_1

    iget-boolean v0, v0, Les/cd$u;->a:Z

    if-eqz v0, :cond_1

    goto :goto_0

    :cond_1
    const/4 v1, 0x0

    :goto_0
    if-eqz v1, :cond_2

    .line 43
    iget-object v0, p1, Les/cd;->d:Les/cd$i;

    .line 44
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$i;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->e:Les/cd$q;

    .line 45
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$q;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->g:Les/cd$c;

    .line 46
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$c;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->i:Les/cd$d;

    .line 47
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$d;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->h:Les/cd$n;

    .line 48
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$n;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->k:Les/cd$o;

    .line 49
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$o;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->f:Les/cd$e;

    .line 50
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$e;)Z

    move-result v0

    if-nez v0, :cond_2

    iget-object v0, p1, Les/cd;->l:Les/cd$k;

    .line 51
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$k;)Z

    move-result v0

    if-nez v0, :cond_2

    .line 52
    iget-object p1, p1, Les/cd;->j:Les/cd$u;

    iput-boolean v2, p1, Les/cd$u;->a:Z

    goto :goto_1

    :cond_2
    move v2, v1

    :goto_1
    return v2
.end method

.method private c(Les/cd;)Lcom/esfile/screen/recorder/media/util/y;
    .locals 5

    .line 42
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/a;->f()Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v0

    .line 43
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    .line 44
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v2

    .line 45
    iget-object v3, p1, Les/cd;->g:Les/cd$c;

    invoke-direct {p0, v3}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$c;)Z

    move-result v3

    if-eqz v3, :cond_0

    mul-int/lit8 v1, v2, 0x10

    .line 46
    div-int/lit8 v1, v1, 0x9

    goto :goto_1

    .line 47
    :cond_0
    iget-object v3, p1, Les/cd;->h:Les/cd$n;

    if-eqz v3, :cond_1

    iget v3, v3, Les/cd$n;->a:I

    goto :goto_0

    :cond_1
    const/4 v3, 0x0

    .line 48
    :goto_0
    div-int/lit8 v3, v3, 0x5a

    rem-int/lit8 v3, v3, 0x2

    if-eqz v3, :cond_2

    .line 49
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v1

    .line 50
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v2

    .line 51
    :cond_2
    iget-object v3, p1, Les/cd;->i:Les/cd$d;

    invoke-direct {p0, v3}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$d;)Z

    move-result v3

    if-eqz v3, :cond_3

    .line 52
    iget-object v3, p1, Les/cd;->i:Les/cd$d;

    iget-object v3, v3, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-virtual {v3}, Landroid/graphics/RectF;->width()F

    move-result v3

    int-to-float v1, v1

    mul-float v3, v3, v1

    float-to-int v1, v3

    .line 53
    iget-object v3, p1, Les/cd;->i:Les/cd$d;

    iget-object v3, v3, Les/cd$d;->a:Landroid/graphics/RectF;

    invoke-virtual {v3}, Landroid/graphics/RectF;->height()F

    move-result v3

    int-to-float v2, v2

    mul-float v3, v3, v2

    float-to-int v2, v3

    .line 54
    :cond_3
    :goto_1
    iget-object v3, p1, Les/cd;->f:Les/cd$e;

    invoke-direct {p0, v3}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$e;)Z

    move-result v3

    if-eqz v3, :cond_6

    .line 55
    iget-object v3, p1, Les/cd;->f:Les/cd$e;

    iget-object v3, v3, Les/cd$e;->a:Les/cd$g;

    invoke-direct {p0, v3}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v3

    const/4 v4, -0x1

    if-eqz v3, :cond_4

    .line 56
    iget-object v3, p1, Les/cd;->f:Les/cd$e;

    iget-object v3, v3, Les/cd$e;->a:Les/cd$g;

    iget-object v3, v3, Les/cd$g;->j:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    .line 57
    iget-object p1, p1, Les/cd;->f:Les/cd$e;

    iget-object p1, p1, Les/cd$e;->a:Les/cd$g;

    iget-object p1, p1, Les/cd$g;->j:Landroid/graphics/Bitmap;

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p1

    goto :goto_2

    .line 58
    :cond_4
    iget-object v3, p1, Les/cd;->f:Les/cd$e;

    iget-object v3, v3, Les/cd$e;->b:Les/cd$g;

    invoke-direct {p0, v3}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v3

    if-eqz v3, :cond_5

    .line 59
    iget-object v3, p1, Les/cd;->f:Les/cd$e;

    iget-object v3, v3, Les/cd$e;->b:Les/cd$g;

    iget-object v3, v3, Les/cd$g;->j:Landroid/graphics/Bitmap;

    invoke-virtual {v3}, Landroid/graphics/Bitmap;->getWidth()I

    move-result v4

    .line 60
    iget-object p1, p1, Les/cd;->f:Les/cd$e;

    iget-object p1, p1, Les/cd$e;->b:Les/cd$g;

    iget-object p1, p1, Les/cd$g;->j:Landroid/graphics/Bitmap;

    invoke-virtual {p1}, Landroid/graphics/Bitmap;->getHeight()I

    move-result p1

    goto :goto_2

    :cond_5
    const/4 p1, -0x1

    :goto_2
    if-lez v4, :cond_6

    if-lez p1, :cond_6

    .line 61
    sget-object v3, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;->CENTER_CROP:Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;

    invoke-static {v1, v2, v4, p1, v3}, Lcom/esfile/screen/recorder/media/util/ScaleTypeUtil;->a(IIIILcom/esfile/screen/recorder/media/util/ScaleTypeUtil$ScaleType;)Landroid/graphics/Rect;

    move-result-object p1

    .line 62
    invoke-virtual {p1}, Landroid/graphics/Rect;->width()I

    move-result v1

    .line 63
    invoke-virtual {p1}, Landroid/graphics/Rect;->height()I

    move-result v2

    .line 64
    :cond_6
    invoke-virtual {v0, v1}, Lcom/esfile/screen/recorder/media/util/y;->b(I)V

    .line 65
    invoke-virtual {v0, v2}, Lcom/esfile/screen/recorder/media/util/y;->a(I)V

    return-object v0
.end method

.method private c(Les/cd;JLjava/lang/StringBuilder;)V
    .locals 19

    move-object/from16 v0, p0

    move-object/from16 v1, p1

    move-wide/from16 v2, p2

    move-object/from16 v4, p4

    .line 1
    iget-object v5, v1, Les/cd;->e:Les/cd$q;

    .line 2
    invoke-direct {v0, v5}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$q;)Z

    move-result v6

    if-eqz v6, :cond_3

    .line 3
    new-instance v6, Ljava/util/ArrayList;

    invoke-direct {v6}, Ljava/util/ArrayList;-><init>()V

    .line 4
    invoke-direct/range {p0 .. p1}, Lcom/esfile/screen/recorder/videos/edit/l;->d(Les/cd;)J

    move-result-wide v7

    .line 5
    iget-object v5, v5, Les/cd$q;->a:Ljava/util/List;

    invoke-interface {v5}, Ljava/util/List;->iterator()Ljava/util/Iterator;

    move-result-object v5

    :goto_0
    invoke-interface {v5}, Ljava/util/Iterator;->hasNext()Z

    move-result v9

    if-eqz v9, :cond_2

    invoke-interface {v5}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v9

    check-cast v9, Les/cd$r;

    .line 6
    iget-wide v10, v9, Les/cd$r;->i:J

    .line 7
    invoke-static {v1, v10, v11, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;JJ)J

    move-result-wide v10

    add-long/2addr v10, v7

    .line 8
    iget-wide v12, v9, Les/cd$r;->j:J

    .line 9
    invoke-static {v1, v12, v13, v2, v3}, Lcom/esfile/screen/recorder/videos/edit/activities/trim/a;->a(Les/cd;JJ)J

    move-result-wide v12

    add-long/2addr v12, v7

    sub-long v14, v12, v10

    const-wide/16 v16, 0x3e8

    cmp-long v18, v14, v16

    if-gez v18, :cond_0

    goto :goto_0

    .line 10
    :cond_0
    new-instance v14, Les/g8;

    invoke-direct {v14}, Les/g8;-><init>()V

    const/4 v15, 0x1

    .line 11
    iput-boolean v15, v14, Les/g8;->a:Z

    .line 12
    iget v15, v9, Les/cd$r;->b:F

    iput v15, v14, Les/g8;->e:F

    .line 13
    iget v15, v9, Les/cd$r;->c:F

    iput v15, v14, Les/g8;->f:F

    .line 14
    iget v15, v9, Les/cd$r;->d:F

    neg-float v15, v15

    iput v15, v14, Les/g8;->h:F

    .line 15
    new-instance v15, Landroid/util/Pair;

    mul-long v10, v10, v16

    invoke-static {v10, v11}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v10

    mul-long v12, v12, v16

    invoke-static {v12, v13}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v11

    invoke-direct {v15, v10, v11}, Landroid/util/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V

    iput-object v15, v14, Les/g8;->i:Landroid/util/Pair;

    .line 16
    new-instance v10, Les/i8;

    invoke-direct {v10}, Les/i8;-><init>()V

    const/4 v11, 0x1

    .line 17
    iput-boolean v11, v10, Les/i8;->a:Z

    .line 18
    iget-object v11, v9, Les/cd$r;->e:Ljava/lang/String;

    iput-object v11, v10, Les/i8;->e:Ljava/lang/String;

    .line 19
    iget v11, v9, Les/cd$r;->f:I

    iput v11, v10, Les/i8;->c:I

    .line 20
    iget v11, v9, Les/cd$r;->g:F

    iput v11, v10, Les/i8;->b:F

    .line 21
    iget-object v9, v9, Les/cd$r;->h:Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;

    if-eqz v9, :cond_1

    iget-object v9, v9, Lcom/esfile/screen/recorder/videos/edit/activities/caption/font/a;->a:Landroid/graphics/Typeface;

    goto :goto_1

    :cond_1
    const/4 v9, 0x0

    :goto_1
    iput-object v9, v10, Les/i8;->d:Landroid/graphics/Typeface;

    .line 22
    iput-object v10, v14, Les/g8;->g:Ljava/lang/Object;

    .line 23
    invoke-interface {v6, v14}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 24
    :cond_2
    invoke-interface {v6}, Ljava/util/List;->size()I

    move-result v1

    invoke-static {v1}, Lcom/esfile/screen/recorder/videos/edit/activities/caption/q;->a(I)V

    const-string v1, "subtitle"

    .line 25
    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, "_"

    .line 26
    invoke-virtual {v4, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 27
    iget-object v1, v0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v1, v6}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/util/List;)V

    :cond_3
    return-void
.end method

.method private c(Les/cd;Ljava/lang/StringBuilder;)V
    .locals 4

    .line 28
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->b(Les/cd;)Z

    move-result v0

    if-eqz v0, :cond_1

    .line 29
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    .line 30
    iget-object v1, p1, Les/cd;->f:Les/cd$e;

    const/4 v2, 0x0

    .line 31
    iput-object v2, p1, Les/cd;->f:Les/cd$e;

    .line 32
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->c(Les/cd;)Lcom/esfile/screen/recorder/media/util/y;

    move-result-object v2

    .line 33
    iput-object v1, p1, Les/cd;->f:Les/cd$e;

    .line 34
    invoke-virtual {v2}, Lcom/esfile/screen/recorder/media/util/y;->b()I

    move-result v1

    int-to-float v1, v1

    const/high16 v3, 0x3f800000    # 1.0f

    mul-float v1, v1, v3

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/media/util/y;->a()I

    move-result v2

    int-to-float v2, v2

    div-float/2addr v1, v2

    .line 35
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->e(Les/cd;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 36
    new-instance p1, Les/ed;

    const/4 v2, 0x2

    invoke-direct {p1, v2, v1}, Les/ed;-><init>(IF)V

    goto :goto_0

    .line 37
    :cond_0
    new-instance p1, Les/ed;

    invoke-direct {p1, v1}, Les/ed;-><init>(F)V

    .line 38
    :goto_0
    invoke-interface {v0, p1}, Ljava/util/List;->add(Ljava/lang/Object;)Z

    .line 39
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1, v0}, Lcom/esfile/screen/recorder/media/a;->a(Ljava/util/List;)V

    const-string p1, "watermark"

    .line 40
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string p1, "_"

    .line 41
    invoke-virtual {p2, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    :cond_1
    return-void
.end method

.method private d(Les/cd;)J
    .locals 7

    .line 1
    iget-object v0, p1, Les/cd;->f:Les/cd$e;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$e;)Z

    move-result v0

    const-wide/16 v1, 0x0

    if-eqz v0, :cond_0

    iget-object v0, p1, Les/cd;->f:Les/cd$e;

    iget-object v0, v0, Les/cd$e;->a:Les/cd$g;

    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$g;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 2
    iget-object v0, p1, Les/cd;->f:Les/cd$e;

    iget-object v0, v0, Les/cd$e;->a:Les/cd$g;

    iget-wide v3, v0, Les/cd$g;->k:J

    add-long/2addr v3, v1

    goto :goto_0

    :cond_0
    move-wide v3, v1

    .line 3
    :goto_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->h(Les/cd;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 4
    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    iget-object p1, p1, Les/cd$a;->g:Les/cd$f;

    iget-wide v5, p1, Les/cd$f;->c:J

    cmp-long p1, v5, v1

    if-lez p1, :cond_1

    add-long/2addr v3, v5

    goto :goto_1

    :cond_1
    const-wide/16 v0, 0xbb8

    add-long/2addr v3, v0

    :cond_2
    :goto_1
    return-wide v3
.end method

.method private e(Les/cd;)Z
    .locals 2
    .param p1    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object v0, p1, Les/cd;->m:Les/cd$a;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/cd$a;->i:Les/cd$b;

    if-eqz v0, :cond_0

    iget-boolean v1, v0, Les/cd$b;->a:Z

    if-eqz v1, :cond_0

    iget-object v0, v0, Les/cd$b;->c:Ljava/lang/String;

    .line 2
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    iget-object p1, p1, Les/cd$a;->i:Les/cd$b;

    iget-object p1, p1, Les/cd$b;->d:Ljava/lang/String;

    .line 3
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private f(Les/cd;)Z
    .locals 1
    .param p1    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    if-eqz p1, :cond_0

    iget-object p1, p1, Les/cd$a;->f:Les/cd$h;

    if-eqz p1, :cond_0

    iget-boolean v0, p1, Les/cd$h;->a:Z

    if-eqz v0, :cond_0

    iget-object p1, p1, Les/cd$h;->d:Ljava/lang/String;

    .line 2
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private g(Les/cd;)Z
    .locals 1
    .param p1    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    if-eqz p1, :cond_0

    iget-object p1, p1, Les/cd$a;->h:Les/cd$t;

    if-eqz p1, :cond_0

    iget-boolean v0, p1, Les/cd$t;->a:Z

    if-eqz v0, :cond_0

    iget-object p1, p1, Les/cd$t;->d:Ljava/lang/String;

    .line 2
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method

.method private h(Les/cd;)Z
    .locals 2
    .param p1    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 1
    iget-object v0, p1, Les/cd;->m:Les/cd$a;

    if-eqz v0, :cond_0

    iget-object v0, v0, Les/cd$a;->g:Les/cd$f;

    if-eqz v0, :cond_0

    iget-boolean v1, v0, Les/cd$f;->a:Z

    if-eqz v1, :cond_0

    iget-object v0, v0, Les/cd$f;->d:Ljava/lang/String;

    .line 2
    invoke-static {v0}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_0

    iget-object p1, p1, Les/cd;->m:Les/cd$a;

    iget-object p1, p1, Les/cd$a;->g:Les/cd$f;

    iget-object p1, p1, Les/cd$f;->e:Ljava/lang/String;

    .line 3
    invoke-static {p1}, Landroid/text/TextUtils;->isEmpty(Ljava/lang/CharSequence;)Z

    move-result p1

    if-nez p1, :cond_0

    const/4 p1, 0x1

    goto :goto_0

    :cond_0
    const/4 p1, 0x0

    :goto_0
    return p1
.end method


# virtual methods
.method public a(Les/cd;Lcom/esfile/screen/recorder/media/a$g;)I
    .locals 4
    .param p1    # Les/cd;
        .annotation build Landroidx/annotation/NonNull;
        .end annotation
    .end param

    .line 9
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    if-nez v0, :cond_0

    const/4 p1, 0x6

    return p1

    .line 10
    :cond_0
    :try_start_0
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->h(Les/cd;)Z

    move-result v0

    if-nez v0, :cond_2

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->f(Les/cd;)Z

    move-result v0

    if-nez v0, :cond_2

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->g(Les/cd;)Z

    move-result v0

    if-nez v0, :cond_2

    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->e(Les/cd;)Z

    move-result v0

    if-eqz v0, :cond_1

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1

    :cond_2
    :goto_0
    const/4 v0, 0x1

    :goto_1
    invoke-direct {p0, v0}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Z)V
    :try_end_0
    .catch Lcom/esfile/screen/recorder/media/util/ExceptionUtil$UnsupportedFileException; {:try_start_0 .. :try_end_0} :catch_0

    .line 11
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "start edit: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {p1}, Les/cd;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "ve"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 12
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/a;->e()I

    move-result v0

    int-to-long v0, v0

    invoke-static {p1, v0, v1}, Les/rd;->a(Les/cd;J)J

    move-result-wide v0

    .line 13
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    const/4 v3, 0x0

    invoke-virtual {v2, v3}, Lcom/esfile/screen/recorder/media/a;->e(Ljava/util/List;)V

    .line 14
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/media/a;->b()V

    .line 15
    iget-object v2, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {v2}, Lcom/esfile/screen/recorder/media/a;->c()V

    .line 16
    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    .line 17
    invoke-direct {p0, p1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->b(Les/cd;Ljava/lang/StringBuilder;)V

    .line 18
    invoke-direct {p0, p1, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd;JLjava/lang/StringBuilder;)V

    .line 19
    invoke-direct {p0, p1, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->b(Les/cd;JLjava/lang/StringBuilder;)V

    .line 20
    invoke-direct {p0, p1, v0, v1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->c(Les/cd;JLjava/lang/StringBuilder;)V

    .line 21
    iget-object v0, p1, Les/cd;->g:Les/cd$c;

    invoke-direct {p0, v0, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$c;Ljava/lang/StringBuilder;)V

    .line 22
    iget-object v0, p1, Les/cd;->i:Les/cd$d;

    invoke-direct {p0, v0, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$d;Ljava/lang/StringBuilder;)V

    .line 23
    iget-object v0, p1, Les/cd;->h:Les/cd$n;

    invoke-direct {p0, v0, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$n;Ljava/lang/StringBuilder;)V

    .line 24
    invoke-direct {p0, p1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->c(Les/cd;Ljava/lang/StringBuilder;)V

    .line 25
    iget-object v0, p1, Les/cd;->k:Les/cd$o;

    invoke-direct {p0, v0, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd$o;Ljava/lang/StringBuilder;)V

    .line 26
    invoke-direct {p0, p1, v2}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd;Ljava/lang/StringBuilder;)V

    .line 27
    invoke-direct {p0, p1}, Lcom/esfile/screen/recorder/videos/edit/l;->a(Les/cd;)V

    .line 28
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1, p2}, Lcom/esfile/screen/recorder/media/a;->a(Lcom/esfile/screen/recorder/media/a$g;)V

    .line 29
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->a:Ljava/lang/String;

    const-string p2, "edit"

    invoke-static {p1, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_3

    .line 30
    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    goto :goto_2

    .line 31
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->a:Ljava/lang/String;

    const-string p2, "preview"

    invoke-static {p1, p2}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result p1

    if-eqz p1, :cond_4

    .line 32
    invoke-virtual {v2, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 33
    :cond_4
    :goto_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    invoke-virtual {p1}, Lcom/esfile/screen/recorder/media/a;->g()I

    move-result p1

    return p1

    :catch_0
    const/4 p1, 0x5

    return p1
.end method

.method public a()V
    .locals 1

    .line 34
    iget-object v0, p0, Lcom/esfile/screen/recorder/videos/edit/l;->b:Lcom/esfile/screen/recorder/media/a;

    if-eqz v0, :cond_0

    .line 35
    invoke-virtual {v0}, Lcom/esfile/screen/recorder/media/a;->a()V

    :cond_0
    return-void
.end method
